﻿using System;
using System.Collections.Generic;
using System.Data.SqlServerCe;
using System.IO;
using System.Linq;
using System.Text;
using InnovTech.Persistence;
using NHibernate.Util;

namespace NHibernate.MsSqlCe
{
    public class NHMsSqlCeGenerator : NHDatabaseGeneratorBase<INHMsSqlCeDbInfo>
    {

        public NHMsSqlCeGenerator(ISessionFactoryBuilder<INHMsSqlCeDbInfo> builder)
            : base(builder)
        {
        }

        protected override void CreateEmptyDatabase(string connectionStr)
        {
            SqlCeEngine engine = new SqlCeEngine(connectionStr);
            engine.CreateDatabase();
        }

    }
}
